package com.macro.mall.demo2.controller;

import com.macro.mall.demo2.service.PmsBrandService;
import com.macro.mall.model.PmsBrand;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author：贾维斯
 * @Description: 描述
 * @name：PmsBrand
 * @Date：2024/10/20 11:12
 */
@Tag(name = "PmsBrandController4", description = "品牌列表接口")
@Controller
@RequestMapping("/brand")
public class PmsBrandController4 {
    @Autowired
    private PmsBrandService pmsBrandService;

    /**brand/recommendList
     * 品牌列表
     * @return
     */
    @GetMapping("/recommendList")
    public List<PmsBrand> list() {
        return pmsBrandService.list();
    }

}
